package com.yuxl.ai.knowledgeText.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Table;

import java.time.LocalDateTime;

/**
 * @Author : yuxl
 * @create 2025/7/10 下午6:07
 */
@Schema(description = "文本知识库:向量")
@Table("ai_knowledge_text_embedding")
@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class AiKnowledgeTextEmbedding {
    @Id
    private Long id;

    @Schema(description =  "标题")
    private String name;

    @Schema(description =  "文档id")
    private Long textId;

    @Schema(description =  "知识库id")
    private Long knowledgeId;

    @Schema(description =  "内容")
    private String content;

    @Schema(description =  "向量")
    private float[] embedding;

    @Schema(description =  "创建时间")
    private LocalDateTime createTime;
}
